Frontend.ctrl.index = function() {
	var store = {

	// binder
	}, bind = function() {
		$('td.reply > div.meta > span > a:last-child', '#index').on('click', function(e) {
			// listen for the lick event
			$('div.page', 'div.site').bind('licked', function() {
				// scroll to bot
				if(!($(window).scrollTop() + $(window).height() == Frontend.height()))
					$("html, body").animate({scrollTop: $(document).height() - $(window).height()}, 200, 'swing');

				// unbind :(
				$(this).unbind('licked');
			});
		});

		// stop clicking on inactive links
		$('ul.pagination > li > a.inactive').on('click', function(e) {
			e.preventDefault();
		});

	// constructor
	}, __construct = function() {
		bind();
		Frontend.ctrl.forum.images();
	};

	// public, yay
	return {
		init: __construct
	};
}();